<?php
session_start();
require_once '../header.php';
function __autoload($className)
	{
    	require_once('../class/' . $className . '.class.php');
	}
session::need_seller();
$userId=session::getuserid();
$webroot="../";
require_once '../html/sellerTemplate.php';
if(!empty($_GET))
{
	$confirm=$_GET["confirm"];
}
else
{
	$confirm=0;
}
if((session::is_seller()==TRUE)&&($userId=="4016")&&($confirm==1))
{
	$getCountry=database::LimitQuery("paypal",array(
	'select' => 'paypal_email,paypal_password',
	'condition' => array(
	'is_sold' => 'N',
	'agent' => 'mrhieu'
	)
	));
	if(!empty($getCountry))
	{
		$i=1;
		?>
		<textarea rows="40" cols="120">
		<?php
		foreach($getCountry as $paypalList)
		{
			echo "$i | ".$paypalList['paypal_email']." | ".$paypalList['paypal_password']."\n";
			$arrayPaypal[]=$paypalList['paypal_email'];
				$i++;
		}
		?>
		</textarea>
		<?php
		$delete=database::Delete("paypal",array(
		'paypal_email' => $arrayPaypal
		));
	}
	else 
	{
		echo "no thing";
	}

}
else 
{
	require_once '../html/getOldPaypal.php';
}


?>